<template>

	<view class="plateNt">
		<u-toast ref="uToast" />
		<u-cell-group>
			<u-cell border-bottom="false" border-top="false" title="提报日期" :value="dataList.clueCreateDateString">
			</u-cell>
			<!-- 	<u-cell border-gap title="接收信息时间" 
				:value="dataList.receiveMsgDateString">
			</u-cell> -->
			<u-cell border-gap title="报案人" :value="dataList.reportPerson">
			</u-cell>
			<u-cell border-gap title="车牌号" :value="dataList.carId">
			</u-cell>
			<u-cell border-gap title="电话" :value="dataList.phone">
			</u-cell>
			<u-cell border-gap title="下发时间" :value="dataList.outRepairDateString">
			</u-cell>
			<u-cell border-gap title="下发人" :value="dataList.sendPerson">
			</u-cell>
			<u-cell border-gap title="距门店距离" :value="dataList.storeDistance">
			</u-cell>
			<u-cell border-gap title="事故等级" :value="dataList.accidentLevel">
			</u-cell>
			<u-cell border-gap title="经纬度">

				<text slot="value" class="u-slot-value">{{dataList.latitude}} , {{dataList.longitude}}</text>
			</u-cell>
			<u-cell border-gap title="事故描述" :value="dataList.accidentDescribe">
			</u-cell>
			<u-cell border-gap title="事故地址" @click="repairAddressTop()" :value="dataList.repairAddress" :isLink="true">
			</u-cell>
			<u-cell border-gap title="视频">
				<div slot="value">
					<video id="myVideo" :src="dataList.videoAddress"></video>
				</div>
			</u-cell>
			<!-- <u-cell border-gap title="事故位置" :value="dataList.isInStoreName">
			</u-cell> -->
		</u-cell-group>
	</view>


</template>

<script>
	export default {

		data() {
			return {
				dataList: {}
			}
		},
		onLoad(option) {
			var that = this
			
			
			// that.$request('getClueMasterByClueId', {
			// 	clueId: option.list, 
			// }, 'get').then(res2 => {
			// 	if (res2.code == 200) {
			// 		that.dataList = res2.data
			// 		that.$refs.uToast.success(`${res2.message}`)
			// 	} else {
			// 		that.$refs.uToast.error(`${res2.message}`)
			// 	}
			
			// })

			this.dataList = JSON.parse(option.list)

		},
		methods: {
			repairAddressTop() {
				console.log(111)
				var that = this
				wx.openLocation({
					latitude: Number(that.dataList.latitude), // 纬度
					longitude: Number(that.dataList.longitude), // 经度
					scale: 18, // 缩放比例
					name: that.dataList.address, // 位置名
				
					success() {
						console.log('地图打开成功');
					},
					fail(err) {
						console.error('地图打开失败', err);
					}
				});
			}
		}
	}
</script>

<style>
</style>